import request from '@/config/axios'

// 护理记录 VO
export interface Nurse_recordVO {
  id: number // 主键
  customerId: string // 客户id
  contentId: string // 护理项目id
  nursingTime: Date // 护理时间
  nursingContent: string // 护理内容
  nursingCount: string // 护理数量
  staffId: number // 护理人员id
  nursingId: number // 护理安排id
}

// 护理记录 API
export const Nurse_recordApi = {
  // 查询护理记录分页
  getNurse_recordPage: async (params: any) => {
    return await request.get({ url: `/yyzx/nurse_record/page`, params })
  },

  // 查询护理记录详情
  getNurse_record: async (id: number) => {
    return await request.get({ url: `/yyzx/nurse_record/get?id=` + id })
  },

  // 新增护理记录
  createNurse_record: async (data: Nurse_recordVO) => {
    return await request.post({ url: `/yyzx/nurse_record/create`, data })
  },

  // 修改护理记录
  updateNurse_record: async (data: Nurse_recordVO) => {
    return await request.put({ url: `/yyzx/nurse_record/update`, data })
  },

  // 删除护理记录
  deleteNurse_record: async (id: number) => {
    return await request.delete({ url: `/yyzx/nurse_record/delete?id=` + id })
  },

  // 导出护理记录 Excel
  exportNurse_record: async (params) => {
    return await request.download({ url: `/yyzx/nurse_record/export-excel`, params })
  },
}